package org.noote.libs.sogle.helper;

import org.noote.libs.sogle.LineMesh;

public class LineMesh_Box extends LineMesh {
	public LineMesh_Box(float width, float height, float depth) {
        width  /= 2;
        height /= 2;
        depth  /= 2;
 
        float vertices[] = { -width, -height, -depth, // 0
                              width, -height, -depth, // 1
                              width,  height, -depth, // 2
                             -width,  height, -depth, // 3
                             -width, -height,  depth, // 4
                              width, -height,  depth, // 5
                              width,  height,  depth, // 6
                             -width,  height,  depth, // 7
        };
 
        short indices[] = { 0,1, 1,2, 2,3, 3,0, 0,4,  1,5, 2,6, 3,7, 4,5, 5,6, 6,7, 7,4};
 
        setIndices(indices);
        setVertices(vertices);
        
        //matEnableMaterial = false;
    }
}
